<#include "/admin/public.html">
<style type="text/css">
.layui-form-checkbox[lay-skin=primary] {
   height: 30px !important;
   line-height: 28px!important;
}
#uploadfile .filename{
	display:inline-block;
	width:180px;
}
.span{
    display: inline-block;
    height: 38px;
    line-height: 38px;
}
.feedback-img{
    width: 100%;
    max-with:100%;
    margin-bottom: 10px;
}
</style>
<div class="uk-layui-form">
    <form class="layui-form uk-form" action="" method="post">
        <div class="layui-form-item">
            <label class="layui-form-label">姓名</label>
            <div class="layui-input-inline">
                <span class="span">${feedbackmanagementData.name!''}</span>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">手机</label>
            <div class="layui-input-inline">
                <span class="span">${feedbackmanagementData.telephone!''}</span>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">提交时间</label>
            <div class="layui-input-inline">
                <span class="span">${feedbackmanagementData.createtime!''}</span>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">内容</label>
            <div class="layui-input-block">
            	<textarea id="describecontent" disabled placeholder="请输入正文" class="layui-textarea fly-editor" style="height: 260px;">${feedbackmanagementData.feedbackcontent!''}</textarea>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">问题截图</label>
            <div class="layui-input-block">
            	<ul>
            		<#if feedbackenclosureList?? && feedbackenclosureList??>
					<#list feedbackenclosureList as imgList>
						<li>
							<img class="feedback-img" alt="" src="/${imgList.enclosureurl!''}">
						</li>
					</#list>
					</#if>
            	</ul>
            </div>
        </div>
        <div class="layui-form-button">
            <div class="layui-button-block">
                <button class="layui-btn" lay-submit lay-filter="formDemo">返回</button>
            </div>
        </div>
    </form>
</div>
<script>
var p = [];
<#list feedbackenclosureList as imgList>
p.push({"id":"${imgList.id!''}","filePath":"${imgList.filePath!''}"});
</#list>
console.log(p);
layui.use(['form','laydate','layedit'], function() {
    var form = layui.form();
    form.render(); //更新全部
});




</script>